-- GENERATED SPELL FOR [7th Legion Wyrm Hunter] --


function spell0_26779(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26779', 595, 1)
end

function Sorts_26779(pUnit, Event)
local choix_sorts_26779 = math.random(0, 0)
if choix_sorts_26779 == 0 then
pUnit:RegisterEvent('spell0_26779', 1, 1)
end
end

function mob26779_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26779', math.random(1500, 3000), 1)
end

function mob26779_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26779_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26779_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26779, 1, 'mob26779_Action')
RegisterUnitEvent(26779, 2, 'mob26779_Leave')
RegisterUnitEvent(26779, 3, 'mob26779_Kill')
RegisterUnitEvent(26779, 4, 'mob26779_Die')
